﻿using Microsoft.Xna.Framework;

namespace main.src.game
{

    public static class Game_Map
    {

        public static Game_Enemy[] Enemies;
        public static Rectangle[]  Platforms;
        public static Rectangle[]  Blocks;
        public static Game_Player  Player;

        static Game_Map()
        {
            Player = new Game_Player(0, 450);
            Enemies = new Game_Enemy[0];
        }

        public static void Setup(byte mapID)
        {
            switch (mapID)
            {
                case 0:
                    Blocks = new Rectangle[5];
                    Blocks[0] = new Rectangle(0, 600, 800, 32);

                    Blocks[1] = new Rectangle(-32, 0, 32, 600);
                    Blocks[2] = new Rectangle(800, 0, 32, 600);
                    Blocks[3] = new Rectangle(0, -32, 800, 32);

                    //Blocks[4] = new Rectangle(0, 450, 800, 1);

                    Platforms = new Rectangle[1];
                    Platforms[0] = new Rectangle(0, 500, 800, 1);
                    break;
            }
        }

        public static void Update()
        {
            Player.Update();
            foreach (Game_Enemy enemy in Enemies)
                enemy.Update();
        }

    }

}